package com.ymatou.userservice.service;

import java.util.ArrayList;
import java.util.Map;

import com.google.gson.reflect.TypeToken;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*查询买手在线状态Call
*FreeMaker Template自动生成代码
*/
public class SellerOnlineStatusRequestCall extends YmatouBaseCall{
	private static String opurl ="json/reply/SellerOnlineStatusRequest";
	
	public SellerOnlineStatusRequestCall() {
		super(EnvSetup.getSystemUrl("api_userservice"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public String  getStatus(){
		String status=null;
		ArrayList<Map> am=(ArrayList<Map>) FormatUtil.GSONToObject(getString("Result"), new TypeToken<ArrayList<Map>>() {}.getType());
		status=am.get(0).get("Status").toString();
		return status;
	}
}